[ ! -L .env ] && ln -s ../.env .env

mkdir -p ../mysql/data ../mysql/log ../minio/data ../minio/config ../redis ../elasticsearch/data

chmod -R 777 ../mysql ../minio ../elasticsearch ../redis
chmod +x *.sh *.yml

docker-compose down
docker network create ruoyi-net >/dev/null 2>&1
docker-compose up -d
docker-compose ps
